import service from '@/utils/request'
// @Tags LsGoods
// @Summary 创建lsGoods表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.LsGoods true "创建lsGoods表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /lsGoods/createLsGoods [post]
export const createLsGoods = (data) => {
  return service({
    url: '/lsGoods/createLsGoods',
    method: 'post',
    data
  })
}

// @Tags LsGoods
// @Summary 删除lsGoods表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.LsGoods true "删除lsGoods表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /lsGoods/deleteLsGoods [delete]
export const deleteLsGoods = (params) => {
  return service({
    url: '/lsGoods/deleteLsGoods',
    method: 'delete',
    params
  })
}

// @Tags LsGoods
// @Summary 批量删除lsGoods表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除lsGoods表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /lsGoods/deleteLsGoods [delete]
export const deleteLsGoodsByIds = (params) => {
  return service({
    url: '/lsGoods/deleteLsGoodsByIds',
    method: 'delete',
    params
  })
}

// @Tags LsGoods
// @Summary 更新lsGoods表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.LsGoods true "更新lsGoods表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /lsGoods/updateLsGoods [put]
export const updateLsGoods = (data) => {
  return service({
    url: '/lsGoods/updateLsGoods',
    method: 'put',
    data
  })
}

// @Tags LsGoods
// @Summary 用id查询lsGoods表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.LsGoods true "用id查询lsGoods表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /lsGoods/findLsGoods [get]
export const findLsGoods = (params) => {
  return service({
    url: '/lsGoods/findLsGoods',
    method: 'get',
    params
  })
}

// @Tags LsGoods
// @Summary 分页获取lsGoods表列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取lsGoods表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /lsGoods/getLsGoodsList [get]
export const getLsGoodsList = (params) => {
  return service({
    url: '/lsGoods/getLsGoodsList',
    method: 'get',
    params
  })
}

// @Tags LsGoods
// @Summary 不需要鉴权的lsGoods表接口
// @Accept application/json
// @Produce application/json
// @Param data query goodsReq.LsGoodsSearch true "分页获取lsGoods表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /lsGoods/getLsGoodsPublic [get]
export const getLsGoodsPublic = () => {
  return service({
    url: '/lsGoods/getLsGoodsPublic',
    method: 'get',
  })
}
